<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<HTML>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=gb2312">
<META HTTP-EQUIV="content-script-type" CONTENT="text/JavaScript">
<META HTTP-EQUIV="content-style-type" CONTENT="text/css">
<title> </title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/cjpm.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/cjcalendar.js"></script>
<script language="javascript" src="${pageContext.request.contextPath}/js/page.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.11.1.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/jquery.validate.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/jquery.metadata.js"></script>
    <script src="${pageContext.request.contextPath}/js/messages_cn.js"></script>
    <script src="${pageContext.request.contextPath}/js/additional-method.js"></script>
</head>
<script language="javascript">
	var CalendarWebControl = new atCalendarControl();
</script>
<SCRIPT LANGUAGE="javaScript">
<!--
function delCom(id){
	if(id == '1'){
		document.idFrmMain.gys.value = "";		
	}else{
		document.idFrmMain.sccj.value = "";
	}
}

function save()
{
	alert("保存成功！");
}

function back()
{
	history.back();
}

</SCRIPT>
<script type="text/javascript">
    $(function(){
        var validate = $("#idFrmMain").validate({
            debug: true, //调试模式取消submit的默认提交功能
            //errorClass: "label.error", //默认为错误的样式类为：error
            focusInvalid: false, //当为false时，验证无效时，没有焦点响应
            onkeyup: false,
            submitHandler: function(form){   //表单提交句柄,为一回调函数，带一个参数：form
                alert("提交表单");
                form.submit();   //提交表单
            },

            rules:{
                connect_phone:{
                    isMobile:true
                }

            }

        });

    });
</script>
<BODY BACKGROUND="${pageContext.request.contextPath}/images/bg.gif">
<mvc:form name="idFrmMain" id="idFrmMain" method="POST" action="/admin/storage/add.htm" modelAttribute="storage">
<%--<FORM NAME="idFrmMain" ID="idFrmMain" METHOD="POST"  ACTION="" ONSUBMIT="return false"> --%>
<table border="0" width="100%">
    <tr>
    	<td width="100%" colspan="0" rowspan="0" align="center" valign="center">
      	<table border="0" width="100%" id="table1" cellspacing="0"  cellpadding="2"  bgcolor="gray">
        	<tr>
          	<td class="headerbar61" width="50%" colspan="1">仓库详细</td>
            <td class="headerbar63" width="50%" colspan="1">
            	<input type="submit" name="save70302002" value=" 保 存 ">
              <input type="button" name="save70302002" onclick="javascript:back()" value=" 返 回 ">&nbsp;              
            </td>
          </tr>
        </table>
      </td>
    </tr>

    <tr>
    	<td width="100%" colspan="0" rowspan="0" align="center" valign="center">
      	<table border="0" width="100%" id="table1" cellspacing="1"  cellpadding="2"  bgcolor="gray">
        	<tr>
          	<td class="textbar81" width="15%" colspan="1">仓库编号</td>
            <td class="textbar01" width="85%" colspan="1">
            	<%--<input type="text" value="10001" size="15">--%>
                    <mvc:input path="sto_number" id="sto_number" size="15" value="${sto_number}" readonly="true"/>
            </td>
          </tr>

         <tr>        	          
		<td class="textbar81" width="15%">仓库名称</td>
		<td class="textbar01" width="85%">
			<%--<input type="text" value="高邮仓库" size="15">--%>
                <mvc:input path="sto_name" id="sto_name" size="15" value="${sto_name}" required="required"/>
		</td>         		
         </tr>   


         <tr>        	          
		<td class="textbar81" width="15%">联系人</td>
		<td class="textbar01" width="85%">
            <%--<input type="text" value="李四" size="15">--%>
                <mvc:input path="connect_man" id="connect_man" size="15" value="${connect_man}" required="required"/>
		</td>         		
         </tr>  

	            <tr>        	          
		<td class="textbar81" width="15%">手机号码</td>
		<td class="textbar01" width="85%">
            <%--<input type="text" value="13333333333" size="15">--%>
                <mvc:input path="connect_phone" id="connect_phone" size="15" value="${connect_phone}" required="required"/>
		</td>         		
         </tr>  
         
             <%--<tr>        	          --%>
		<%--<td class="textbar81" width="15%">仓储量</td>--%>
		<%--<td class="textbar01" width="85%">--%>
            <%--<input type="text" value="600" size="15">--%>
                <%--<mvc:input path="sto_capacity" size="15" value="${sto_capacity}" readonly="true"/>--%>
		<%--</td>         		--%>
         <%--</tr>       	   	--%>
        </table>
				<table border=0 cellspacing=0 cellpadding=0 width="100%" height=5>
					<tr>
						<td></td>
					</tr>
				</table>
      </td>
    </tr>
</table>
<%--</FORM>--%>
</mvc:form>
</BODY>
</html>



